package com.bpzj.web.spring.databind;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author bpzj 2019/9/30 17:59
 */
@RestController
public class DataBindController {

  private static final Logger log = LoggerFactory.getLogger(DataBindController.class);


  @GetMapping("/dataBind/httpGet/urlParamBindObject")
  public String httpGetUrlParamBind(@RequestParam String notObjField, UrlParamBindObj bindObj) {
    log.info(notObjField);
    log.info(bindObj.toString());
    return bindObj.toString();

  }
}
